package cn.com.yang.java8;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * java8 Stream
 * TODO
 * @author yangyijin
 * @since 2023年4月25日-下午12:02:50
 */
public class Java8List {
	
	static void delList(){
        List<String> list = Arrays.asList("","","44","qa","3333","111","222","312312>>>");
        List list2 = list.stream().filter(s -> s.length() == 2).collect(Collectors.toList());
        for (int i=0;i< list2.size();i++){
            System.out.println(list2.get(i));
        }
        List list3 = list.stream().filter(s -> s.contains(">>")).collect(Collectors.toList());
        long long4 = list.stream().filter(s -> s.isEmpty()).count();
        System.out.println(long4);
    }

}
